package com.kaijie.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author LPKun
 * @date 2021/6/10 17:30:38
 * 解决分页com.baomidou.mybatisplus.extension.plugins.pagination.Page<T>失效的问题
 */
@Configuration
public class PageConfig {

    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
